package cate.common.table.activity.lostdreamland.row;

import cate.common.table.EExcelNoteField;
import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteField;

public class LostDreamlandRewardRow extends ERow {
    @NoteField(value = "天数")
    public int day;
    @NoteField(value = "层数")
    public int level;
    @NoteField(value = "怪物方实例")
    public String instanceConfig;
    @NoteField(value = "怪物名称")
    public String name;
    @NoteField(value = "展示英雄ID")
    public int showHero;
    @NoteField(value = "通关奖励")
    public String freeReward;
    @NoteField(value = "追加奖励")
    public String buyReward;
    @NoteField(value = "价格")
    public int price;
    @NoteField(value = "充值项ID")
    public int payId;
    @EExcelNoteField(fieldName = "限购次数")
    public int limitNum;
    @EExcelNoteField(fieldName = "购买类型")
    public int type;
    @NoteField("推荐战力")
    public long recPower;
    @NoteField(value = "活动分组")
    public int group;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("ID");
        this.day = xrw.getInteger("天数");
        this.level = xrw.getInteger("层数");
        this.instanceConfig = xrw.getString("怪物方实例");
        this.name = xrw.getString("怪物名称");
        this.showHero = xrw.getInteger("展示英雄ID");
        this.freeReward = xrw.getString("通关奖励");
        this.buyReward = xrw.getString("追加奖励");
        this.price = xrw.getInteger("价格");
        this.payId = xrw.getInteger("充值项ID",0);
        this.limitNum = xrw.getInteger("限购次数", 0);
        this.type = xrw.getInteger("购买类型");
        this.recPower = xrw.getLong("推荐战力", 0L);
        this.group = xrw.getInteger("活动分组");
    }

}
